package com.clickpaas.governmentcloud.service.policymatchextservice;

import com.clickpaas.governmentcloud.common.ServerResponse;
import com.clickpaas.governmentcloud.entity.policyEntity.PolicyEntity;

import java.util.HashMap;

public interface MatchExtService {
    /**
     * 跟政策是否匹配
     * @param policy
     * @return
     */
    public ServerResponse<?> isMatchSuccess(PolicyEntity policy);

    /**
     * 计算企业评分
     * @param policy
     * @return
     */
    public HashMap getScore(PolicyEntity policy);

    /**
     * 写入匹配结果
     * @param policy
     * @return
     */
    public ServerResponse<?> insertPolicyData(PolicyEntity policy,Integer score,StringBuffer suggest,ServerResponse serverResponse);

    /**
     * 必要条件判断
     * @param policy
     * @return
     */
    public HashMap necessCondi(PolicyEntity policy);
}
